package com.example.demo.service;

import com.example.demo.dto.UserDto;
import com.example.demo.entity.User;

import java.io.UnsupportedEncodingException;

public interface UserService {
//    User login(String username,String password);
    UserDto login(String username, String password);
    boolean checkToken(long userid,String token);
    boolean checkToken(long userid,String token,String clientType);

    String generateToken(UserDto userDto,String clientType) throws UnsupportedEncodingException;
}
